<template>
    <div>
     <!-- 使用图标 -->
     <el-icon @click="ck">
        <caret-left v-if="$store.state.homeview.navBool" />
        <caret-right v-else />
    </el-icon>
    </div>
    </template>
    <script lang="ts" setup>
    // 引用图标
    import { useStore } from "vuex";
    import { CaretLeft } from "@element-plus/icons-vue";
    import { CaretRight } from "@element-plus/icons-vue";

    const store = useStore()
    let ck = () => {
        // 修改
        store.commit("SET_NAVBOOL")
    }

    </script>
    <style lang="scss">
    .el-header{
     line-height: 70px;
     
    }
    .el-icon{
         font-size:20px;
     }
    </style>